<table id="toplinks">
	<tr>
		<td><h3>{ if $values.mode eq 'edit'}{ $lang.TITLE_EDIT_AVATAR }{else}{ $lang.TITLE_ADD_AVATAR }{/if}</h3></td>
		<td align="right"><a href="{ $SCRIPT_NAME }">{ $lang.LINK_BACK }</a></td>
	</tr>
</table>
<form action="{ $formurl }" method="post">
<table class="list">
	<tr>
		<td  class="listHead">{ $lang.FIELD_NAME}<sup class="red">*</sup></td>
		<td class="listNormal"><input type="text" name="name" value="{ $values.name }"/></td>
	</tr>
	<tr>
		<td  class="listHead">{ $lang.FIELD_SIZE}<sup class="red">*</sup></td>
		<td class="listNormal"><input type="text" name="size_width"  size="7" value="{ $values.size_width }"/> x <input type="text" name="size_height" size="7" value="{ $values.size_height }"/></td>
	</tr>
	<tr>
		<td  class="listHead">{ $lang.FIELD_OUTPUT_FORMAT}<sup class="red">*</sup></td>
		<td class="listNormal">
			<select name="output_format">
				{html_options options=$imgformats selected=$values.output_format}
			</select>
		</td>
	</tr>
	<tr>
		<td  class="listHead">{ $lang.FIELD_RESIZE_MODE}<sup class="red">*</sup></td>
		<td class="listNormal">
			<select name="resize_mode">
				{html_options options=$resize_modes selected=$values.resize_mode}
			</select>
		</td>
	</tr>
	<tr>
		<td colspan="3"  class="listHead">{ $lang.TXT_REQUIRED_FIELD}</td>
	</tr>
	<tr>
		<td colspan="2" class="blockFoot"><input type="submit" value="{ $lang.BUTTON_SUBMIT}"></td>
	</tr>

</table>
</form>